package com.amt.olcacon;

import cn.hutool.core.lang.Snowflake;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;

@EnableAsync
@SpringBootApplication
@MapperScan("com.amt.olcacon.mapper")
public class OlcaConApplication {

    public static void main(String[] args)  {

        SpringApplication.run(OlcaConApplication.class, args);
    }

    @Bean
    public Snowflake sfe() {
        return new Snowflake();
    }

}
